package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainPayRefundrecordMapper;
import com.ktgj.train.domain.TrainPayRefundrecord;
import com.ktgj.train.service.ITrainPayRefundrecordService;

/**
 * 支付退款记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainPayRefundrecordServiceImpl implements ITrainPayRefundrecordService 
{
    @Autowired
    private TrainPayRefundrecordMapper trainPayRefundrecordMapper;

    /**
     * 查询支付退款记录
     * 
     * @param refundrecordid 支付退款记录ID
     * @return 支付退款记录
     */
    @Override
    public TrainPayRefundrecord selectTrainPayRefundrecordById(Long refundrecordid)
    {
        return trainPayRefundrecordMapper.selectTrainPayRefundrecordById(refundrecordid);
    }

    /**
     * 查询支付退款记录列表
     * 
     * @param trainPayRefundrecord 支付退款记录
     * @return 支付退款记录
     */
    @Override
    public List<TrainPayRefundrecord> selectTrainPayRefundrecordList(TrainPayRefundrecord trainPayRefundrecord)
    {
        return trainPayRefundrecordMapper.selectTrainPayRefundrecordList(trainPayRefundrecord);
    }

    /**
     * 新增支付退款记录
     * 
     * @param trainPayRefundrecord 支付退款记录
     * @return 结果
     */
    @Override
    public int insertTrainPayRefundrecord(TrainPayRefundrecord trainPayRefundrecord)
    {
        return trainPayRefundrecordMapper.insertTrainPayRefundrecord(trainPayRefundrecord);
    }

    /**
     * 修改支付退款记录
     * 
     * @param trainPayRefundrecord 支付退款记录
     * @return 结果
     */
    @Override
    public int updateTrainPayRefundrecord(TrainPayRefundrecord trainPayRefundrecord)
    {
        return trainPayRefundrecordMapper.updateTrainPayRefundrecord(trainPayRefundrecord);
    }

    /**
     * 批量删除支付退款记录
     * 
     * @param refundrecordids 需要删除的支付退款记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainPayRefundrecordByIds(Long[] refundrecordids)
    {
        return trainPayRefundrecordMapper.deleteTrainPayRefundrecordByIds(refundrecordids);
    }

    /**
     * 删除支付退款记录信息
     * 
     * @param refundrecordid 支付退款记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainPayRefundrecordById(Long refundrecordid)
    {
        return trainPayRefundrecordMapper.deleteTrainPayRefundrecordById(refundrecordid);
    }
}
